<% @body_id = 'login' %>
<div id="existing-customer">
  <h2><%= t("login_as_existing") %></h2>
  <%= hook :login do %>
    <%= render :partial => 'shared/login' %>
    <%=
      account_links = []
      account_links << link_to(t("create_a_new_account"), signup_path) if Spree::Auth::Disabler::Config[:client_signup_enabled]
      account_links << link_to(t("forgot_password"), new_password_reset_path) if Spree::Auth::Disabler::Config[:password_recovery_enabled]

      if account_links.any?
        "#{t('or')} #{account_links.join(' | ')}".html_safe
      end
    %>
  <% end %>
</div>

